package mapper;

import bean.Emp;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface EmpMapper {

    List<Emp> findAllEmp();

    void saveEmp(Emp emp);

    void deleteEmp(int id);

    // ❌
    void updateEmp(int id,String ename);

    void updateEmp1(Emp emp);

    void updateEmp2(Map<String,Object> map);

    void updateEmp3(@Param("id") int id, @Param("name") String ename);

    Emp findEmpByNo(int id);

    List<Emp> findEmpByEname(String ename);
    List<Emp> findEmpByPage1(@Param("start")int start,@Param("size") int size);

}
